<?php
       require_once('../auth/auth.php');
?>

<html lang="en">

<head>

	<meta charset="utf-8"/>
	<title>Patient Portal | <?php echo $page_title; ?></title>
	
	<link rel="stylesheet" href="assets/css/layout.css" type="text/css" media="screen" />
	<!--[if lt IE 9]>
	<link rel="stylesheet" href="assets/css/ie.css" type="text/css" media="screen" />
	<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->
	<script src="assets/js/jquery-1.5.2.min.js" type="text/javascript"></script>
	<script src="assets/js/hideshow.js" type="text/javascript"></script>
	<script src="assets/js/jquery.tablesorter.min.js" type="text/javascript"></script>
	<script type="text/javascript" src="assets/js/jquery.equalHeight.js"></script>
	<script type="text/javascript" src="assets/js/css-pop.js"></script>
	<script type="text/javascript">
	$(document).ready(function() 
    	{ 
      	  $(".tablesorter").tablesorter(); 
   	 } 
	);
	$(document).ready(function() {

	//When page loads...
	$(".tab_content").hide(); //Hide all content
	$("ul.tabs li:first").addClass("active").show(); //Activate first tab
	$(".tab_content:first").show(); //Show first tab content

	//On Click Event
	$("ul.tabs li").click(function() {

		$("ul.tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab_content").hide(); //Hide all tab content

		var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active ID content
		return false;
	});

});
    </script>
    <script type="text/javascript">
    $(function(){
        $('.column').equalHeight();
    });
</script>

</head>

<body>

	<header id="header">
		<hgroup>
			<h1 class="site_title"><a href="index.php">Patient Portal</a></h1>
			<h2 class="section_title"><?php echo $page_title; ?></h2> <!-- <div class="btn_view_site"><a href="http://www.medialoot.com">View Site</a></div>-->
		</hgroup>
	</header> <!-- end of header bar -->

<?php 

	include 'secondaryBar/userName_Header.php';       
       
?> 
 
	<aside id="sidebar" class="column">
		<form class="quick_search" action="searchResults.php" method="post">
		
			<!--<label>Search For: </label> -->
				<select style="width:50%;" name="searchField" id="searchFieldSelector">
					<?php					
					echo "<option>All</option>";
					if ($searchField=="First Name"){				
						echo "<option selected>First Name</option>";
					} else {
						echo "<option>First Name</option>";
					}
					if ($searchField=="Last Name"){				
						echo "<option selected>Last Name</option>";
					} else {					
						echo "<option>Last Name</option>";
					}
					if ($searchField=="Gender"){				
						echo "<option selected>Gender</option>";
					} else {							
					echo "<option>Gender</option>";
					}
					if ($searchField=="Age"){				
						echo "<option selected>Age</option>";
					} else {					
					echo "<option>Age</option>";
					}
					if ($searchField=="Primary Disease"){				
						echo "<option selected>Primary Disease</option>";
					} else {		
					echo "<option>Primary Disease</option>";
					}
					if ($searchField=="Admitted On Date"){				
						echo "<option selected>Admitted On Date</option>";
					} else {							
					echo "<option>Admitted On Date</option>";
					}
					if ($searchField=="Discharged On Date"){				
						echo "<option selected>Discharged On Date</option>";
					} else {	
					echo "<option>Discharged On Date</option>";
					}
					if ($searchField=="Readmission Risk"){				
						echo "<option selected>Readmission Risk</option>";
					} else {	
					echo "<option>Readmission Risk</option>";
					}	
					?>																																																																				
				</select>		
		
				<div class="spacer"></div>
				
			<input type="text" value="Search ..." id="searchBar" name="searchTerm" onfocus="if(!this._haschanged){this.value=''};this._haschanged=true;">

		</form>
		<hr/>
		<h3>Patients</h3>
		<ul class="toggle">
			<li class="icn_add_user"><a href="addPatient.php">Add New Patient</a></li>
			<li class="icn_view_users"><a href="currentPatients.php">View Current Patients</a></li>
			<li class="icn_view_users"><a href="dischargedPatients.php">View Discharged Patients</a></li>
		</ul>
		<h3>Models</h3>
		<ul class="toggle">
			<li class="icn_settings"><a href="CHF_Model.php">Congestive Heart Failure</a></li>
			<li class="icn_settings"><a href="Diabetes_Model.php">Diabetes</a></li>
		</ul>
		<h3>Admin</h3>
		<ul class="toggle">
			<li class="icn_profile"><a href="userProfile.php">Your Profile</a></li>
			<li class="icn_settings"><a href="">Options</a></li>
			<li class="icn_security"><a href="">Security</a></li>
			<li class="icn_jump_back"><a href="../auth/logout.php">Logout</a></li>
		</ul>
		
		<footer>
			<hr/>
			<p>Theme by <a href="http://www.medialoot.com">MediaLoot</a></p>
		</footer>
	</aside><!-- end of sidebar -->
</body>

</html>
